﻿using System.Collections.Generic;
using System.Data;

namespace BaseFunction
{
    public class EChartHelp
    {
        public static string GetValueStrByColumName(DataTable dt, string name)
        {
            var list = new List<string>();
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                list.Add(dt.Rows[i][name].ToString());
            }
            return StringHelp.ConvertListToString(list, ",", false);
        }
    }
}
